package com.cf.subject.infra.basic.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cf.subject.infra.basic.entity.SubjectCategory;
import com.cf.subject.infra.basic.service.SubjectCategoryService;
import com.cf.subject.infra.basic.mapper.SubjectCategoryMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author humengjie
 * @description 针对表【subject_category(题目分类)】的数据库操作Service实现
 * @createDate 2024-03-02 16:33:25
 */
@Service
public class SubjectCategoryServiceImpl extends ServiceImpl<SubjectCategoryMapper, SubjectCategory>
        implements SubjectCategoryService {
    /**
     * 查询岗位大类
     * @return
     */
    @Override
    public List<SubjectCategory> queryCategory(SubjectCategory subjectCategory) {

           return this.list(new LambdaQueryWrapper<SubjectCategory>().eq(SubjectCategory::getParentId,subjectCategory.getParentId()).eq(SubjectCategory::getIsDeleted,subjectCategory.getIsDeleted()));

    }
}
